package com.codi.bus.core.dao;

import com.codi.base.dao.v2.GeneratedBaseDao;
import com.codi.bus.core.domain.UserMsg;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * 亲，写个类注释呗
 * @author asus
 * @date 2018-04-12 10:53
 */
public interface UserMsgDao extends GeneratedBaseDao<UserMsg> {
    int selectByDividend(Long userId, String dividendRecord);


    int selectByAllotNo(Long userId, String allotNo);

    int selectMessageCount(Long userId, Integer msgType, Long profileId);

    Page<UserMsg> selectMessage(Long userId, Integer msgType, Integer titleType, Pageable pageable, Long profileId);


    int updateMessageState(Long userId, Integer msgType, Long profileId);
}
